package common;

import java.io.Serializable;

/**
 * Generic class for the Message.
 * 
 * @author VIRAguia
 *
 * @param <T>
 * 
 * @provides Message
 */
public abstract class Message<T> implements Serializable{
    /**
     * 
     */
    private static final long serialVersionUID = 2320167347751227231L;
    private String            type;
    private T                 content;

    public Message(String t, T c) {
        this.type = t;
        this.content = c;
    }

    public String getType() {
        return this.type;
    }

    public T getContent() {
        return this.content;
    }

    public abstract String toString();
}
